<template>
    <van-nav-bar
  :title="title"
  left-text="返回"
  left-arrow
  fixed=true
  @click-left="onClickLeft"
  @click-right="onClickRight"
  class="navbar"
/>
</template>


<script>
export default {
  props:['title'],
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      Toast('按钮');
    },
  },
};
</script>
